import Layout from './../layout/index.vue'

export default [
  {
    path: '/userCenter',
    component: Layout,
    meta: {
      title: '用户中心',
    },
    children: [
      {
        path: 'user',
        name: 'user',
        meta: {
          title: '用户管理',
        },
        component: () => import('@/views/userCenter/user/index'),
      },
      {
        path: 'organization',
        name: 'organization',
        meta: {
          title: '机构管理',
        },
        component: () => import('@/views/userCenter/organization/index'),
      },
      {
        path: 'role',
        name: 'role',
        meta: {
          title: '角色管理',
        },
        component: () => import('@/views/userCenter/role/index'),
      },
      {
        path: 'group',
        name: 'group',
        meta: {
          title: '用户分组',
        },
        component: () => import('@/views/userCenter/group/index'),
      },
      {
        path: 'menu',
        name: 'menu',
        meta: {
          title: '菜单管理',
        },
        component: () => import('@/views/userCenter/menu/index'),
      },
      {
        path: 'button',
        name: 'button',
        meta: {
          title: '按钮管理',
        },
        component: () => import('@/views/userCenter/button/index'),
      },
      {
        path: 'dictionaries',
        name: 'dictionaries',
        meta: {
          title: '字典管理',
        },
        component: () => import('@/views/userCenter/dictionaries/index'),
      },
      {
        path: 'dictionaries/detail',
        name: 'dictionaries',
        meta: {
          title: '字典详情',
          breadcrumb: ['字典管理'],
        },
        component: () => import('@/views/userCenter/dictionaries/detail'),
      },
      {
        path: 'member',
        name: 'member',
        meta: {
          title: '会员用户',
        },
        component: () => import('@/views/userCenter/member/index'),
      },
      {
        path: 'member/detail',
        name: 'member',
        meta: {
          title: '会员用户详情',
          breadcrumb: ['会员用户'],
        },
        component: () => import('@/views/userCenter/member/detail'),
      },
      {
        path: 'member/subscribe',
        name: 'member',
        meta: {
          title: '会员事件',
          breadcrumb: ['会员用户'],
        },
        component: () => import('@/views/userCenter/member/subscribe'),
      },
      {
        path: 'member/particulars',
        name: 'member',
        meta: {
          title: '事件详情',
          breadcrumb: ['会员用户', '会员事件'],
        },
        component: () => import('@/views/userCenter/member/particulars'),
      },
      {
        path: 'global',
        name: 'global',
        meta: {
          title: '系统参数',
        },
        component: () => import('@/views/userCenter/global/index'),
      },
    ],
  },
  {
    path: '/applicationCenter',
    component: Layout,
    meta: {
      title: '应用管理中心',
    },
    children: [
      {
        path: 'application',
        name: 'application',
        meta: {
          title: '应用管理',
        },
        component: () => import('@/views/applicationCenter/application/index'),
      },
      {
        path: 'subscribe',
        name: 'subscribe',
        meta: {
          title: '事件订阅',
        },
        component: () => import('@/views/applicationCenter/subscribe/index'),
      },
      {
        path: 'subscribe/detail',
        name: 'subscribe',
        meta: {
          title: '事件订阅详情',
          breadcrumb: ['事件订阅'],
        },
        component: () => import('@/views/applicationCenter/subscribe/detail'),
      },
    ],
  },
  {
    path: '/authenticationCenter',
    component: Layout,
    meta: {
      title: '鉴权中心',
    },
    children: [
      {
        path: 'serve',
        name: 'serve',
        meta: {
          title: '服务管理',
        },
        component: () => import('@/views/authenticationCenter/serve/index'),
      },
      {
        path: 'authorization',
        name: 'serve',
        meta: {
          title: '接口授权',
          breadcrumb: ['服务管理'],
        },
        component: () =>
          import('@/views/authenticationCenter/serve/authorization'),
      },
    ],
  },
  {
    path: '/interfaceCenter',
    component: Layout,
    meta: {
      title: '接口管理中心',
    },
    children: [
      {
        path: 'interface',
        name: 'interface',
        meta: {
          title: '接口管理',
        },
        component: () => import('@/views/interfaceCenter/interface/index'),
      },
      {
        path: 'handle',
        name: 'interface',
        meta: {
          title: '添加/编辑接口',
          breadcrumb: ['接口管理'],
        },
        component: () => import('@/views/interfaceCenter/interface/handle'),
      },
      {
        path: 'detail',
        name: 'interface',
        meta: {
          title: '接口详情',
          breadcrumb: ['接口管理'],
        },
        component: () => import('@/views/interfaceCenter/interface/detail'),
      },
    ],
  },
  {
    path: '/orderCenter',
    component: Layout,
    meta: {
      title: '工单中心',
    },
    children: [
      {
        path: 'type',
        name: 'type',
        meta: {
          title: '工单类型',
        },
        component: () => import('@/views/orderCenter/type/index'),
      },
      {
        path: 'allocation',
        name: 'allocation',
        meta: {
          title: '工单配置',
        },
        component: () => import('@/views/orderCenter/allocation/index'),
      },
      {
        path: 'launch',
        name: 'launch',
        meta: {
          title: '发起工单',
        },
        component: () => import('@/views/orderCenter/launch/index'),
      },
      {
        path: 'mine',
        name: 'mine',
        meta: {
          title: '我发起的',
        },
        component: () => import('@/views/orderCenter/mine/index'),
      },
      {
        path: 'approval',
        name: 'approval',
        meta: {
          title: '待审批',
        },
        component: () => import('@/views/orderCenter/approval/index'),
      },
      {
        path: 'assign',
        name: 'assign',
        meta: {
          title: '待指派',
        },
        component: () => import('@/views/orderCenter/assign/index'),
      },
      {
        path: 'order',
        name: 'order',
        meta: {
          title: '待接单',
        },
        component: () => import('@/views/orderCenter/order/index'),
      },
      {
        path: 'monitor',
        name: 'monitor',
        meta: {
          title: '工单监控',
        },
        component: () => import('@/views/orderCenter/monitor/index'),
      },
      {
        path: 'file',
        name: 'file',
        meta: {
          title: '归档工单',
        },
        component: () => import('@/views/orderCenter/file/index'),
      },
      {
        path: 'copy',
        name: 'copy',
        meta: {
          title: '抄送我的',
        },
        component: () => import('@/views/orderCenter/copy/index'),
      },
    ],
  },
  {
    path: '/processCenter',
    component: Layout,
    meta: {
      title: '流程中心',
    },
    children: [
      {
        path: 'type',
        name: 'type',
        meta: {
          title: '流程类型',
        },
        component: () => import('@/views/processCenter/type/index'),
      },
      {
        path: 'allocation',
        name: 'allocation',
        meta: {
          title: '流程配置',
        },
        component: () => import('@/views/processCenter/allocation/index'),
      },
    ],
  },
  {
    path: '/supplierCenter',
    component: Layout,
    meta: {
      title: '供应商中心',
    },
    children: [
      {
        path: 'manage',
        name: 'manage',
        meta: {
          title: '供应商管理',
        },
        component: () => import('@/views/supplierCenter/manage/index'),
      },
      {
        path: 'manage/detail',
        name: 'manage',
        meta: {
          title: '企业详情',
          breadcrumb: ['供应商管理'],
        },
        component: () => import('@/views/supplierCenter/manage/detail'),
      },
      {
        path: 'audit',
        name: 'audit',
        meta: {
          title: '供应商待审核',
        },
        component: () => import('@/views/supplierCenter/audit/index'),
      },
      {
        path: 'audit/detail',
        name: 'audit',
        meta: {
          title: '企业详情',
          breadcrumb: ['供应商待审核'],
        },
        component: () => import('@/views/supplierCenter/audit/detail'),
      },
      {
        path: 'audited',
        name: 'audited',
        meta: {
          title: '供应商已审核',
        },
        component: () => import('@/views/supplierCenter/audit/audited'),
      },
      {
        path: 'audited/detail',
        name: 'audited',
        meta: {
          title: '企业详情',
          breadcrumb: ['供应商已审核'],
        },
        component: () => import('@/views/supplierCenter/audit/detailed'),
      },
      {
        path: 'blacklist',
        name: 'blacklist',
        meta: {
          title: '黑名单管理',
        },
        component: () => import('@/views/supplierCenter/blacklist/index'),
      },
      {
        path: 'blacklist/detail',
        name: 'blacklist',
        meta: {
          title: '企业详情',
          breadcrumb: ['黑名单管理'],
        },
        component: () => import('@/views/supplierCenter/blacklist/detail'),
      },
      {
        path: 'cm',
        name: 'cm',
        meta: {
          title: '商品类别管理',
        },
        component: () => import('@/views/supplierCenter/cm/index'),
      },
    ],
  },
  {
    path: '/portalCenter',
    component: Layout,
    meta: {
      title: '门户管理',
    },
    children: [
      {
        path: 'home',
        name: 'home',
        meta: {
          title: '首页',
        },
        component: () => import('@/views/portalCenter/home/index'),
      },
      {
        path: 'column',
        name: 'column',
        meta: {
          title: '栏目管理',
        },
        component: () => import('@/views/portalCenter/column/index'),
      },
      {
        path: 'news',
        name: 'news',
        meta: {
          title: '新闻管理',
        },
        component: () => import('@/views/portalCenter/news/index'),
      },
      {
        path: 'news/handle',
        name: 'news',
        meta: {
          title: '添加/编辑新闻',
          breadcrumb: ['新闻管理'],
        },
        component: () => import('@/views/portalCenter/news/handle'),
      },
      {
        path: 'audit',
        name: 'audit',
        meta: {
          title: '新闻审核',
        },
        component: () => import('@/views/portalCenter/audit/index'),
      },
      {
        path: 'audit/detail',
        name: 'audit',
        meta: {
          title: '新闻详情',
          breadcrumb: ['新闻审核'],
        },
        component: () => import('@/views/portalCenter/audit/detail'),
      },
      {
        path: 'special',
        name: 'special',
        meta: {
          title: '专题管理',
        },
        component: () => import('@/views/portalCenter/special/index'),
      },
      {
        path: 'navigation',
        name: 'navigation',
        meta: {
          title: '导航管理',
        },
        component: () => import('@/views/portalCenter/navigation/index'),
      },
      {
        path: 'banner',
        name: 'banner',
        meta: {
          title: '轮播图管理',
        },
        component: () => import('@/views/portalCenter/banner/index'),
      },
      {
        path: 'set',
        name: 'set',
        meta: {
          title: '网站设置',
        },
        component: () => import('@/views/portalCenter/set/index'),
      },
      {
        path: 'notice',
        name: 'notice',
        meta: {
          title: '公告发布',
        },
        component: () => import('@/views/portalCenter/notice/index'),
      },
      {
        path: 'notice/detail',
        name: 'notice',
        meta: {
          title: '公告详情',
          breadcrumb: ['公告发布'],
        },
        component: () => import('@/views/portalCenter/notice/detail'),
      },
      {
        path: 'noticeAudit',
        name: 'noticeAudit',
        meta: {
          title: '公告审核',
        },
        component: () => import('@/views/portalCenter/noticeAudit/index'),
      },
      {
        path: 'noticeAudit/detail',
        name: 'noticeAudit',
        meta: {
          title: '审核详情',
          breadcrumb: ['公告审核'],
        },
        component: () => import('@/views/portalCenter/noticeAudit/detail'),
      },
      {
        path: 'recommend',
        name: 'recommend',
        meta: {
          title: '门户服务推荐',
        },
        component: () => import('@/views/portalCenter/recommend/index'),
      },
      {
        path: 'school',
        name: 'school',
        meta: {
          title: '农技学堂设置',
        },
        component: () => import('@/views/portalCenter/school/index'),
      },
      {
        path: 'issue',
        name: 'issue',
        meta: {
          title: '常见问题管理',
        },
        component: () => import('@/views/portalCenter/issue/index'),
      },
      {
        path: 'ec',
        name: 'ec',
        meta: {
          title: '品牌电商管理',
        },
        component: () => import('@/views/portalCenter/ec/index'),
      },
      {
        path: 'adb',
        name: 'adb',
        meta: {
          title: '亚行项目管理',
        },
        component: () => import('@/views/portalCenter/adb/index'),
      },
      {
        path: 'setting',
        name: 'setting',
        meta: {
          title: '工作台配置',
        },
        component: () => import('@/views/portalCenter/setting/index'),
      },
    ],
  },
  {
    path: '/appCenter',
    component: Layout,
    meta: {
      title: 'APP管理',
    },
    children: [
      {
        path: 'banner',
        name: 'banner',
        meta: {
          title: '轮播图管理',
        },
        component: () => import('@/views/appCenter/banner/index'),
      },
      {
        path: 'apply',
        name: 'apply',
        meta: {
          title: '应用管理',
        },
        component: () => import('@/views/appCenter/apply/index'),
      },
      {
        path: 'expert',
        name: 'expert',
        meta: {
          title: '专家推荐',
        },
        component: () => import('@/views/appCenter/expert/index'),
      },
      {
        path: 'choiceness',
        name: 'choiceness',
        meta: {
          title: '精选服务',
        },
        component: () => import('@/views/appCenter/choiceness/index'),
      },
      {
        path: 'produce',
        name: 'produce',
        meta: {
          title: '农产品推荐',
        },
        component: () => import('@/views/appCenter/produce/index'),
      },
      {
        path: 'agricultural',
        name: 'agricultural',
        meta: {
          title: '农资推荐',
        },
        component: () => import('@/views/appCenter/agricultural/index'),
      },
      {
        path: 'version',
        name: 'version',
        meta: {
          title: '版本管理',
        },
        component: () => import('@/views/appCenter/version/index'),
      },
    ],
  },
  {
    path: '/decisionCenter',
    component: Layout,
    meta: {
      title: '决策端',
    },
    children: [
      {
        path: 'platform',
        name: 'platform',
        meta: {
          title: '平台统计',
        },
        component: () => import('@/views/decisionCenter/platform/index'),
      },
      {
        path: 'input',
        name: 'input',
        meta: {
          title: '投入品分析',
        },
        component: () => import('@/views/decisionCenter/input/index'),
      },
      {
        path: 'agriculture',
        name: 'agriculture',
        meta: {
          title: '农技服务',
        },
        component: () => import('@/views/decisionCenter/agriculture/index'),
      },
      {
        path: 'ec',
        name: 'ec',
        meta: {
          title: '品牌电商',
        },
        component: () => import('@/views/decisionCenter/ec/index'),
      },
    ],
  },
  {
    path: '/expertCenter',
    component: Layout,
    meta: {
      title: '专家审核',
    },
    children: [
      {
        path: 'pass',
        name: 'pass',
        meta: {
          title: '专家管理',
        },
        component: () => import('@/views/expertCenter/pass/index'),
      },
      {
        path: 'pass/detail',
        name: 'pass',
        meta: {
          title: '详情',
          breadcrumb: ['专家管理'],
        },
        component: () => import('@/views/expertCenter/pass/detail'),
      },
      {
        path: 'approval',
        name: 'approval',
        meta: {
          title: '待审批',
        },
        component: () => import('@/views/expertCenter/approval/index'),
      },
      {
        path: 'approval/detail',
        name: 'approval',
        meta: {
          title: '详情',
          breadcrumb: ['待审批'],
        },
        component: () => import('@/views/expertCenter/approval/detail'),
      },
    ],
  },
  {
    path: '/messageCenter',
    component: Layout,
    meta: {
      title: '消息中心',
    },
    children: [
      {
        path: 'backlog',
        name: 'backlog',
        meta: {
          title: '我的待办',
        },
        component: () => import('@/views/messageCenter/backlog/index'),
      },
      {
        path: 'backlog/detail',
        name: 'backlog',
        meta: {
          title: '我的待办详情',
          breadcrumb: ['我的待办'],
        },
        component: () => import('@/views/messageCenter/backlog/detail'),
      },
      {
        path: 'notice',
        name: 'notice',
        meta: {
          title: '公告发布',
        },
        component: () => import('@/views/messageCenter/notice/index'),
      },
    ],
  },
  {
    path: '/logCenter',
    component: Layout,
    meta: {
      title: '日志中心',
    },
    children: [
      {
        path: 'handle',
        name: 'handle',
        meta: {
          title: '操作日志',
        },
        component: () => import('@/views/logCenter/handle/index'),
      },
      {
        path: 'port',
        name: 'port',
        meta: {
          title: '接口日志',
        },
        component: () => import('@/views/logCenter/port/index'),
      },
      {
        path: 'port/detail',
        name: 'port',
        meta: {
          title: '接口日志详情',
          breadcrumb: ['接口日志'],
        },
        component: () => import('@/views/logCenter/port/detail'),
      },
      {
        path: 'error',
        name: 'error',
        meta: {
          title: '错误日志',
        },
        component: () => import('@/views/logCenter/error/index'),
      },
      {
        path: 'error/detail',
        name: 'error',
        meta: {
          title: '错误日志详情',
          breadcrumb: ['错误日志'],
        },
        component: () => import('@/views/logCenter/error/detail'),
      },
    ],
  },
]
